package com.caijin.common.core.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * User前端展示模型
 *
 * @author Peas
 */
@Data
public class UserVO implements Serializable {
    private String username;
    private String avatar;
    private String type;
    private Long id;
    private Long departmentId;
    private Long majorId;
    private String nickname;
    private Integer sex;
    private String password;
    private String phoneNumber;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date birth;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date admissionTime;
}
